package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 订单对象 sys_order
 * 
 * @author ruoyi
 * @date 2021-05-21
 */
public class SysOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 订单发起公司 */
    @Excel(name = "订单发起公司")
    private Long sysDept1;

    /** 订单接受公司 */
    @Excel(name = "订单接受公司")
    private Long sysDept2;

    /** 货物id */
    @Excel(name = "货物id")
    private Long goodsId;

    /** 数量 */
    @Excel(name = "数量")
    private Long goodsNum;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal goodsPrice;

    /**
     * 订单状态
     *  0：已取消
     *  1：已完成
     *  2：正在进行中
     */
    private int myStatus;

    public int getMyStatus() {
        return myStatus;
    }

    public void setMyStatus(int myStatus) {
        this.myStatus = myStatus;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSysDept1(Long sysDept1) 
    {
        this.sysDept1 = sysDept1;
    }

    public Long getSysDept1() 
    {
        return sysDept1;
    }
    public void setSysDept2(Long sysDept2) 
    {
        this.sysDept2 = sysDept2;
    }

    public Long getSysDept2() 
    {
        return sysDept2;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setGoodsNum(Long goodsNum) 
    {
        this.goodsNum = goodsNum;
    }

    public Long getGoodsNum() 
    {
        return goodsNum;
    }
    public void setGoodsPrice(BigDecimal goodsPrice) 
    {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsPrice() 
    {
        return goodsPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sysDept1", getSysDept1())
            .append("sysDept2", getSysDept2())
            .append("goodsId", getGoodsId())
            .append("createBy", getCreateBy())
            .append("goodsNum", getGoodsNum())
            .append("createTime", getCreateTime())
            .append("goodsPrice", getGoodsPrice())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("status",getMyStatus())
            .toString();
    }


}
